{include file='header'}
{include file='nav'}
<link rel="stylesheet" href="__PUBLIC__css/user.css">
<div class="search-head">
	<form action="">
		<input type="text" placeholder="搜索想学的内容" name="kw" class="search-input" value="{$param.kw}">
		<button type="submit" class="search-btn"><i class="iconfont icon-sousuo"></i></button>
	</form>
</div>
<div class="main-content">
	<div class="search-list">
		<div class="hd">
			<ul>
				<li><a href="/search.html" {if !$param.types}class="active"{/if}>全部</a></li>
				<li><a href="?types=1&kw={$param.kw}" {if $param.types eq 1}class="active"{/if}>视频</a></li>
				<li><a href="?types=4&kw={$param.kw}" {if $param.types eq 4}class="active"{/if}>文档</a></li>
				<li><a href="?types=3&kw={$param.kw}" {if $param.types eq 3}class="active"{/if}>练习</a></li>
				<li><a href="?types=2&kw={$param.kw}" {if $param.types eq 2}class="active"{/if}>挑战</a></li>
			</ul>
		</div>
		<div class="bd">
			{empty name="$data"}
			{include file='profile/none'}
			{else /}
			<ul>
				{foreach $data as $v}
				<li><a href="/learnings/{$v.course_id}.html" target="_blank"><em>></em>{$v.course_name}</a></li>
				{/foreach}
			</ul>
			<div class="page">{$data->render()}</div>
			{/empty}
		</div>
	</div>
</div>
{include file='footer'}